package com.etime.perfectschool.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class User {
    @TableId("id")
    private int id;
    private String name;
    private String password;
    private int age;
    private String gender;
    private String phonenumber;
    private String headPhoto;
    private int role;
    @TableField(exist = false)
    private List<SchoolNews> schoolNewsList;
    @TableField(exist = false)
    private List<SchoolActivies> schoolActiviesList;

}
